import { createWebHistory, createRouter } from 'vue-router'
import Home from "../views/Home.vue"
import GuanZhu from "../views/GuanZhu.vue"
//配置路径关系
const routes = [
  {
    path:"/",
    component:Home
  },
    {
    path:"/guanzhu",
    component:GuanZhu
  },
]

//将创建的配置关系挂载到router实例上
const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router